package cn.rengy.web.framework.wxmp.pub.qrcode;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.rengy.lang.ResultEntity;
import cn.rengy.web.framework.sys.user.entity.GetQrcodeVO;
import cn.rengy.web.framework.sys.user.entity.QrcodeResult;

@Controller
public class PubQrcodeController {
	
	@Autowired
	private PubQrcodeService pubQrcodeService;
	
	/**
	 * 获取临时二维码
	 * 扫码后回调
	 * @param getQrcodeVO
	 * @return
	 */
	@RequestMapping(value="/getTemporaryQrcode",method = RequestMethod.POST)
	@ResponseBody
	public ResultEntity<?,QrcodeResult> getTemporaryQrcode(@RequestBody GetQrcodeVO getQrcodeVO){
		return pubQrcodeService.getTemporaryQrcode(getQrcodeVO);
	}
	
	
}
